<?php

namespace part16_StateMode\Code3;

require_once '../../autoload.php';

// 设置context的初始状态是ConcreteStateA
$c = new Context(new ConcreteStateA());

// 不断请求，同时更改状态
$c->request();
$c->request();
$c->request();
$c->request();
